\hypertarget{main_8cpp_source}{\section{main.\-cpp}
}

\begin{DoxyCode}
00001 
00008 \textcolor{preprocessor}{#include "\hyperlink{funcoes_8hpp}{funcoes.hpp}"}
00009 \textcolor{preprocessor}{#include "\hyperlink{matriz_8hpp}{matriz.hpp}"}
00010 \textcolor{preprocessor}{#include "\hyperlink{modelos_8hpp}{modelos.hpp}"}
00011 \textcolor{preprocessor}{#include "\hyperlink{vetor_8hpp}{vetor.hpp}"}
00012 
\hypertarget{main_8cpp_source_l00013}{}\hyperlink{main_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4}{00013} \textcolor{keywordtype}{int} \hyperlink{main_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4}{main}()
00014 \{
00015     valarray <double> a1(2);
00016     a1[0] = 2.0;    a1[1] = 3.0;
00017     valarray <double> a2(2);
00018     a2[0] = 5.0;    a2[1] = 7.0;
00019 
00020 \textcolor{comment}{//    valarray <valarray <double> > AA(2);}
00021 \textcolor{comment}{//    AA[0] = a1;     AA[1] = a2;}
00022 \textcolor{comment}{//}
00023 \textcolor{comment}{//    matriz A(AA, 2, 2);}
00024 \textcolor{comment}{//}
00025 \textcolor{comment}{//    A.show();}
00026 \textcolor{comment}{//}
00027 \textcolor{comment}{//    valarray <double> bb(2);}
00028 \textcolor{comment}{//    bb[0] = 11.0;       bb[1] = 13.0;}
00029 \textcolor{comment}{//}
00030     \hyperlink{classvetor}{vetor} a(a1, \textcolor{charliteral}{'c'});
00031     \hyperlink{classvetor}{vetor} b(a2, \textcolor{charliteral}{'c'});
00032 
00033     \hyperlink{vetor_8hpp_ad8038912ca53f3415505004c16fa4a6d}{scout} << \textcolor{stringliteral}{"a: \(\backslash\)n"} << a << endl;
00034     \hyperlink{vetor_8hpp_ad8038912ca53f3415505004c16fa4a6d}{scout} << \textcolor{stringliteral}{"b: \(\backslash\)n"} << b << endl;
00035 
00036     a += b;
00037 
00038     \hyperlink{vetor_8hpp_ad8038912ca53f3415505004c16fa4a6d}{scout} << \textcolor{stringliteral}{"a: \(\backslash\)n"} << a << endl;
00039 
00040     \textcolor{keywordflow}{return} 0;
00041 \}
\end{DoxyCode}
